﻿using System;
using System.ServiceModel;
using Domain;
using Ninject.Core.Infrastructure;
using WcfPOXCommunication;

namespace TestClient
{
    class Program
    {
        static void Main(string[] args)
        {
            var factory = new ServiceFactory();
            var service = factory.Create<IClientService>();

            var client = new Client
            {
                Id = 1,
                FirstName = "Trent",
                LastName = "Cioran",
                DateOfBirth = DateTime.Now.AddYears(-30)
            };
            var response = service.DoOperation(client);

            Ensure.ArgumentNotNull(response.LastName, "Service response");
            Ensure.Equals(response.LastName, "Trent2");
        }
    }
}
